﻿using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;

namespace Entity
{

    [Table("AA001")]
    public class EntityAccount
    {

        /// <summary>
        /// 输入账号
        /// </summary>
        [Required]
        [Column("AA02")]
        private string? zhanghao;
        /// <summary>
        /// 输入密码
        /// </summary>
        [MinLength(6)]
        [MaxLength(12)]
        [Required]
        private int mima;

        public string Zhanghao { get => zhanghao; set => zhanghao = value; }
        public int Mima { get => mima; set => mima = value; }
    }
}
